package com.bocloud.service.table;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bocloud.framework.base.BaseService;
import com.bocloud.framework.base.IBaseDao;
import com.bocloud.inter.dao.IErrorDao;
import com.bocloud.inter.service.table.IErrorService;
import com.bocloud.model.Error;

@Service
public class ErrorService extends BaseService<Error> implements IErrorService {
	@Resource(name = "errorDao")
	IErrorDao errorDao;

	@Resource(name = "errorDao")
	public void setDao(IBaseDao<Error> dao) {
		super.setDao(dao);
	}

	@Override
	@Transactional
	public Error get(String id) {
		Error model = errorDao.get(id);
		if (model == null)
			return new Error();
		return model;
	}
}
